package com.yueyi.yygh.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yueyi.yygh.model.order.OrderInfo;
import com.yueyi.yygh.vo.order.OrderCountQueryVo;
import com.yueyi.yygh.vo.order.OrderQueryVo;

import java.util.Map;

/**
 * @author zyy
 * @create 2022-02-18 19:18
 */
public interface OrderService extends IService<OrderInfo> {

    Long saveOrder(String scheduleId, Long patientId);

    OrderInfo getOrder(String orderId);

    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    Map<String,Object> show(Long orderId);

    Boolean cancelOrder(Long orderId);

    void patientTips();
    /**
     * 订单统计
     */
    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);


}
